package com.it.xuehang.dto;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;


import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResourceDataImportDTO {

    @NotBlank(message = "资源类别不能为空")
    private String chineseRescateName; // 中文类别名称

    @NotBlank(message = "资源名称不能为空")
    private String resourceName;

    @NotBlank(message = "资源地址不能为空")
    private String resourceAddress;

    @NotBlank(message = "联系人不能为空")
    private String contacts;

    @NotBlank(message = "联系人手机号不能为空")
    private String mobilePhone;


  //  @NotEmptyBigDecimal(message = "数量不能为空")
    @NotNull(message = "数量不能为空")
    private BigDecimal count;

    @NotNull(message = "入库时间不能为空")
    private Date inTime;

}